export default {
    namespaced: true,
    state: {
        loginState: false
    },
    mutations: {
        changeLoginState(state) {
            if (localStorage.getItem('token')) {
                state.loginState = true
            }
        },
        delLoginState(state) {
            localStorage.removeItem('token')
            state.loginState = false
        }
    }
}